<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 老头
  Date: 2023/3/13
  Time: 22:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>

<head>
    <title>网上书城</title>
<%--    <link rel="stylesheet" href="./resources/css/autoplay.css" type="text/css"/>--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/client/resources/css/autoplay.css" type="text/css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/client/resources/js/autoplay.js"></script>
<%--    <script type="text/javascript" src="./resources/js/autoplay.js"></script>--%>
</head>
<body>
<%@include file="./include/head.jsp"%>
<%@include file="./include/menu_search.jsp"%>
<div id="box_autoplay" onclick="getImgs()">
    <div class="list">
        <ul>
<%--            <li><img src="${pageContext.request.contextPath}/client/resources/images/ad/index_ad1.jpg" width="900" height="335" alt="index_ad1.jpg"></li>--%>
<%--            <li><img src="${pageContext.request.contextPath}/client/resources/images/ad/index_ad2.jpg" width="900" height="335" alt="index_ad2.jpg"></li>--%>
<%--            <li><img src="${pageContext.request.contextPath}/client/resources/images/ad/index_ad3.jpg" width="900" height="335" alt="index_ad3.jpg"></li>--%>
                <c:forEach items="${imgs}" var="img">
                    <li><img src="${img.getUrl()}" width="900" height="335" alt="index_ad1.jpg"></li>--%>
                </c:forEach>

        </ul>
    </div>
</div>
<div id="box_bottom">
    <div id="billboard_box">
        <img src="${pageContext.request.contextPath}/client/resources/images/billboard.gif" alt="billboard.gif" onclick="getNotice()">
        尊敬的网上书城用户:<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%--        <input value="公告" type="text" />--%>
<%--        ${user.id}--%>
        <input value=${notice.details} />
    </div>
    <div id="hot_title">
        <img src="${pageContext.request.contextPath}/client/resources/images/hottitle.gif" alt="hottitle.gif">
    </div>
</div>
<script type="text/javascript">

    function getNotice() {
        window.location.href = "${pageContext.request.contextPath}/FindNewNoticeByIdServlet";
    }
    function getImgs() {
        window.location.href = "${pageContext.request.contextPath}/IndexImgServlet";
    }
</script>
</head>
<%@include file="./include/foot.jsp"%>
</body>
</html>
